package com.liliudong.cursormate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liliudong.cursormate.entity.SysRole;

import java.util.List;

/**
 * @author Liudong.li
 * @description 针对表【sys_role(用户角色)】的数据库操作Service
 * @createDate 2023-10-24 22:29:24
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 获取角色列表
     *
     * @param loginId
     * @return {@link List}<{@link String}>
     */
    List<String> getRoleList(Long loginId);

    /**
     * 按id获取包括权限
     *
     * @param id id
     * @return {@link SysRole}
     */
    SysRole getByIdIncludePermissions(Long id);
}
